package com.syx.migration.mapper.base;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.toolkit.Db;

import java.util.Collection;

/**
 * @author Administrator
 * @date 2024/4/24 17:15
 * @description: TODO
 */
public interface BaseMapperPlus<T> extends BaseMapper<T> {

    /**
     * 批量插入
     */
    default boolean insertBatch(Collection<T> entityList) {
        return Db.saveBatch(entityList);
    }

}
